package com.tsky.yyj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @function：被领取明细
 * @author: cainiao
 * @version 1.0
 * @time: 2013-6-10 上午11:32:15
 */
@Entity
@Table(name = "T_YYJ_Receive")
public class Receive {
	@Id
	private String id;// 序号
	@ManyToOne @JoinColumn(name="product_id")
	private Product product;// @商品
	private String code;// 用户名
	private String status = "0";// 优惠券状态（0：未使用、1：已使用）

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
